package com.dhcc.bpm.modules.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.api.entity.Api;
import com.dhcc.bpm.modules.api.entity.IssueApi;
import com.dhcc.bpm.modules.api.vo.IssueApiVO;

import java.util.List;

/**
 * @ClassName IssueApiMapper
 * @Description api发布表 Mapper 接口
 * @Author daina
 * @Date 2020/2/25 16:02
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
public interface IssueApiMapper extends BaseMapper<IssueApi> {

	/**
	 * @Description 自定义分页
	 * @Author daina
	 * @Date 15:07 2020/2/25
	 * @param page
	 * @param issueApi
	 * @return java.util.List<IssueApiVO>
	 **/
	List<IssueApiVO> selectIssueApiPage(IPage page, IssueApiVO issueApi);

	/**
	 * @Description 自定义分页
	 * @Author daina
	 * @Date 15:07 2020/2/25
	 * @param id
	 * @return java.util.List<com.dhcc.bpm.modules.api.entity.Api>
	 **/
	List<Api> selectApisById(Long id);

	/**
	 * @Description 条件查询
	 * @Author daina
	 * @Date 15:07 2020/2/25
	 * @param issueApi
	 * @return java.util.List<com.dhcc.bpm.modules.api.entity.IssueApi>
	 **/
	List<IssueApi> selectByCondition(IssueApi issueApi);

	/**
	 * @Description 状态更新
	 * @Author daina
	 * @Date 15:07 2020/2/25
	 * @param id
	 * @return int
	 **/
	int updateStatus(Long id);

	/**
	 * @Description 更新
	 * @Author daina
	 * @Date 15:08 2020/2/25
	 * @param issueApi
	 * @return int
	 **/
	int updateStatus(IssueApi issueApi);

	/**
	 * @Description 根据id查询
	 * @Author sjm
	 * @Date 10:03 2020/3/11 0011
	 * @param busNo
	 * @return com.dhcc.bpm.modules.api.entity.IssueApi
	 **/
    IssueApi getIssueApiById(Long busNo);

    /**
     * @Description 根据id查询
     * @Author sjm
     * @Date 18:00 2020/4/1 0001
     * @param busNo
     * @return com.dhcc.bpm.modules.api.entity.IssueApi
     **/
	IssueApi selectByApiId(Long busNo);

    /**
     * @Description 根据apiid删除数据
     * @Author sjm
     * @Date 17:59 2020/4/1 0001
     * @param id
     * @return com.dhcc.bpm.modules.api.entity.IssueApi
     **/
    Integer deleteById(Long id);
}
